var e = getApp();

Page({
    data: {
        id: ""
    },
    onLoad: function(e) {
        e.id && (this.setData({
            id: e.id
        }), this.getMyActivityInfo());
    },
    onReady: function() {},
    onShow: function() {},
    onHide: function() {},
    onUnload: function() {},
    onPullDownRefresh: function() {},
    onReachBottom: function() {},
    onShareAppMessage: function() {},
    onShareTimeline: function() {},
    getMyActivityInfo: function() {
        var a = this;
        a.setData({
            datas: []
        });
        var t = e.getNetAddresss("plugin.conference.api.conference-activity.get-enrol-data");
        t += "&conference_id=" + a.data.id, e._getNetWork({
            url: t,
            success: function(e) {
                var t = e.data;
                if (1 == t.result) for (var n = t.data, i = 0; i < n.length; i++) {
                    var o = new Object(), s = a.data.datas;
                    if (o.title = n[i].name, o.is_image = n[i].is_image, 1 == n[i].is_image) o.value = n[i].value; else if (n[i].value instanceof Array) {
                        for (var c = "", u = 0; u < n[i].value.length; u++) c += n[i].value[u] + " ";
                        o.value = c;
                    } else o.value = n[i].value;
                    console.log(o), s.push(o), a.setData({
                        datas: s
                    });
                }
            },
            fail: function(e) {
                console.log(e);
            }
        });
    }
});